package br.org.credfaz.sis.action;

import java.util.List;

import org.apache.struts2.convention.annotation.Action;
import org.apache.struts2.convention.annotation.Result;

import br.org.credfaz.sis.dao.TceContratomutuoDAO;
import br.org.credfaz.sis.modelo.TceContratomutuo;

public class AtualizaTceContratomutuoAction {
	
private List<TceContratomutuo> cmutuo;
	
	@Action(value="atualizaCmutuo", results= {
			@Result(name="ok", type="redirectAction", params= {"actionName", "atualizaEmail"})
	})
	public String execute(){
		cmutuo = new TceContratomutuoDAO().lista();
		return "ok";
	}
	public List<TceContratomutuo> getTceContratomutuo(){
		return cmutuo;
	}

}

